package com.sasis.service;
//
import java.util.List;

import com.sasis.model.DeptInfo;
/**
 * <p>title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: jeyo </p>
 *
 * @author  smith/ewen
 * @version 1.0
 */
public interface DeptInfoService extends Manager{
	//department manager

	public List getAllDepts();//list all dept
	public List selectRef(DeptInfo deptInfo);//list all information between uer_info and dept_info
	//public List getDeptsByParentID(int depId);
    //public List getDeptsByManager(int UserId);
    public DeptInfo getDeptInfoByID(int depId);//get dept info by pk
    public int insert(DeptInfo deptInfo);//insert a dept
	public int update(DeptInfo deptInfo);//update a dept info by pk
	public int delete(DeptInfo deptInfo);//delet a dept info by pk
	public List getParentDepts(int deptId); 
}